@import './variables.css';
.qmp-scroll-y-content {
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch; // 解决ios滚动卡顿
}
.ctm-content-head-fixed{
  position: fixed;
  top: 44px;
  left: 0;
  width: 100%;
  z-index: 9;
  background: var(--bg-global-weak);
}
.ctm-content-tabs-sticky{
  position: relative;
  padding-top: 52px;
  box-sizing: border-box;
  .ctm-list-page{
    min-height: calc(100vh - 140px);
    box-sizing: border-box;
  }
  .qmp-tabs__wrap {
    position: fixed;
    left: 0;
    top: 88px;
    width: 100%;
    z-index: 9;
  }
  .qmp-tabs__content{
    padding-top: 52px;
  }
}
.ctm-content-foot{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 50px;
  padding: 5px 14px;
  z-index: 9;
  box-sizing: border-box;
  background: var(--bg-global-weaker);
  display: flex;
  align-items: center;
  &.relative{
    position: relative;
    left: auto;
    bottom: auto;
    right: auto;
  }
  .btn{
    flex: 1;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    &:not(:first-child){
        margin-left: 8px;
    }
  }
}
.has-top-pt{
  padding-top: 44px;
}
.has-foot-pb{
  padding-bottom: 50px;
  .ctm-content-tabs-sticky{
    .ctm-list-page{
      min-height: calc(100vh - 190px);
      box-sizing: border-box;
    }
  }
}
.pd-lr-main{
  padding-left: 14px;
  padding-right: 14px;
}

.radius-larg{
  border-radius: var(--radius-max);
}

// 绿色按钮
.ctm-btn-main{
  background: var(--button-main-default);
  font: var(--font-control-xl);
  color: var(--texticon-contrary-strong);
}
// 绿色边框 按钮
.ctm-btn-main-outline{
  border: 1px solid var(--button-main-default);
  font: var(--font-control-xl);
  color: var(--button-main-default);
}
// 灰色边框按钮
.ctm-btn-grey-outline{
  border: 1px solid var(--button-grey-noopen);
  font: var(--font-control-xl);
  color: var(--button-grey-default);
}
// 橘色按钮
.ctm-btn-warning{
  background: var(--button-warning-default);
  font: var(--font-control-xl);
  color: var(--texticon-contrary-strong);
}
// 红色按钮
.ctm-btn-error{
  background: var(--button-error-default);
  font: var(--font-control-xl);
  color: var(--texticon-contrary-strong);
}
.color-normal{
  //绿色
  color: var(--texticon-color-brand-normal);
}
.color-grey {
  // 灰黑色0.65
  color: var(--texticon-default-stronger);
  }
 .color-error {
  //红色
  color: var(--texticon-color-error-normal);
  }
.color-black {
  // 黑色0.9
  color: var(--texticon-default-strong);
}
.color-org{
  //橘色
  color:var(--texticon-color-secondary-normal);
}

// 自定义pop弹出层
.custom-popup{
  box-sizing: border-box;
  padding: 16px 0 0;
  &.center{
    width: 84%;
  }
  .pop-title{
    margin-bottom: 20px;
    font: var(--font-page-title);
    color: var(--texticon-default-strong);
    text-align: center;
  }
  .pop-content{
    padding-bottom: 20px;
    line-height: 1.625;
    font-size: 16px;
    color: var(--texticon-default-stronger);
    text-align: center;
  }
  .pop-foot{
    padding: 5px 14px;
    display: flex;
    justify-items: center;
    .cus-btn{
      flex: 1;
      margin-right:8px;
      height: 40px;
      border-radius:var(--radius-max);
      font: var(--font-control-xl);
      display: flex;
      align-items: center;
      justify-content: center;
      &:last-child{
        margin-right: 0;
      }
      &.btn-primary{
        background: var(--button-main-default);
        font: var(--font-control-xl);
        color: var(--texticon-contrary-strong);
      }
      &.btn-default{
        border: 1px solid var(--button-grey-default);
        font: var(--font-control-xl);
        color: var(--button-grey-default);
      }
    }
  }
}
// 文本输入框
.ctm-text-area {
  --qmp-field-text-area-min-height:40px;
  background: var(--bg-global-weak);
  border: 1px solid var(--divisionline-normal);
  border-radius: 4px;
  height: 56px;
  padding: 8px;
  font:var(--font-main-body);
}

// 文本输入框
.ctm-text-field {
  --qmp-field-text-area-min-height:40px;
  height: 48px;
  padding: 12px;
  background: var(--input-bg-disable);
  border-radius: 8px;
  border: 1px solid var(--input-line-active);
}

// 自定义的表单样式
.custom-form{
  background: var(--bg-global-weaker);
  .c-f-cell{
    position: relative;
    padding: 16px 14px;
    min-height: 54px;
    background: var(--bg-global-weaker);
    display: flex;
    align-items: center;
    box-sizing: border-box;
    &::after{
      position: absolute;
      box-sizing: border-box;
      content: ' ';
      pointer-events: none;
      left:14px;
      right:14px;
      bottom: 0;
      border-bottom: 1px solid var(--divisionline-weak);
      -webkit-transform: scaleY(.5);
      transform: scaleY(.5);
    }
    &:last-child::after{
      border-bottom: 0;
    }
    &.divider-line::after{
      border-color:  var(--divisionline-normal);
    }
    /deep/ .qmp-cell-group{
      margin-bottom: 16px;
    }
    /deep/ .van-cell{
      padding: 14px 0;
      .van-field__label{
        width: auto;
        min-width: 70px;
        margin-right: 16px;
        font-size: 14px;
        color: #3C4458;
      }
      .van-field__control{
        font-size: 14px;
        color: #3C4458;
      }
    
      &.van-cell--required::before{
        left: -8px;
      }
    }
  }
}

.overLine {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

// BPM审批信息 公共样式
.group-box {
  box-sizing: border-box;
  background: var(--bg-global-weaker);
  border-radius: 8px;
  margin: 8px 0;
  position: relative;

  &::after {
    position: absolute;
    box-sizing: border-box;
    content: ' ';
    pointer-events: none;
    left: 16px;
    right: 16px;
    bottom: 0;
    border-bottom: 2px solid var(--divisionline-weak);
    -webkit-transform: scaleY(0.5);
    transform: scaleY(0.5);
  }

  .c-cell {
    background: var(--bg-global-weaker);
    padding: 6px 16px;
    min-height: auto;
    &::after {
      border: 0;
    }
  }
}